<!DOCTYPE html>
<html lang = "en" >
<head >
  <meta charset = "UTF-8" >
  <title >Title</title >
    <script src = "https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js" ></script >
</head >
<body >
<p>Hello, World!</p>
</body >
<script >
    $("p").click(function () {
        $.ajax({
            url: "http://127.0.0.1:8080/",
            success: function (res) {
                $("p").html(res.user)
            }
        })
    })
</script >
</html >